home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / DJGPP / CBGRX103.ZIP / contrib / libgrx / src / p8514a.h < prev    next >
Text File  |  1993-12-06  |  508b  |  21 lines

  1.  
  2. #include "grx.h"
  3. #include "libgrx.h"
  4. #include "reg8514a.h"
  5.  
  6. #ifdef __TURBOC__
  7. #include <dos.h>
  8. #endif
  9.  
  10. typedef unsigned char far *pixptr;    /* pixel pointer for memory draw */
  11. #define C_SIGNIF    0xff        /* significant bits in a color */
  12. extern  int _GrPIDrawTable[];        /* drawing control table */
  13.  
  14. # define P_ADDRESS(cxt,off)  ((pixptr)((cxt)->gc_baseaddr +        \
  15.      (unsigned)(COORD_Y(off) * (cxt)->gc_lineoffset) +            \
  16.      (unsigned)(COORD_X(off))                        \
  17. ))
  18.  
  19. extern int _GrPIMixTable[];
  20.  
  21.